li {
 background-color: red;
}
li:nth-child(even){
  background-color: green;
}